home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part1 / 2033 < prev    next >
Encoding:
Internet Message Format  |  1996-08-06  |  754 b 

  1. Path: newshost.cin.gov.au!usenet
  2. From: Christopher Walkden <christow@cin.gov.au>
  3. Newsgroups: comp.lang.c++
  4. Subject: Dereferencing ptrs to ptrs
  5. Date: 15 Jan 1996 05:51:12 GMT
  6. Organization: Community Information Network
  7. Message-ID: <4dcq0g$k17@canb.cin.gov.au>
  8. NNTP-Posting-Host: longl.tas.cin.gov.au
  9. Mime-Version: 1.0
  10. Content-Type: text/plain; charset=us-ascii
  11. Content-Transfer-Encoding: 7bit
  12. X-Mailer: Mozilla 1.1N (Windows; I; 32bit)
  13.  
  14. How do you dereference a pointer pointer?
  15.  
  16. TDecoratedFrame **frame;
  17.  
  18. Value = *(frame)->Attr.X;
  19. didn't work, so I had to create a dummy.
  20.  
  21. TDecoratedFrame *dummy = *frame;
  22. Value = dummy->Attr.X;
  23.  
  24. Is there a more elegant way?
  25.  
  26. I may miss a posting, so please mail me as well (or instead).
  27.  
  28. Thanks, 
  29. Christopher Walkden.
  30.  
  31.